Skip to content

feat: improve CLI for Claude plugin integration#94

Open
josegironn wants to merge 4 commits intomainfrom
feat/cli-claude-plugin-improvements
Open

feat: improve CLI for Claude plugin integration#94
josegironn wants to merge 4 commits intomainfrom
feat/cli-claude-plugin-improvements

Conversation

@josegironn
Copy link
Copy Markdown
Contributor

Summary

  • Add --no-wait flag and non-TTY fallback to deploy command (fixes crash when run by AI agent)
  • Add --id flag to org select and resource env for non-interactive use
  • Add --json flag to org list and new resource env-list command
  • Add resource list, resource add --id, resource remove --id for programmatic resource management
  • Enhance app info to show name, deploy status, and URL (+ --json flag)
  • Add origin/HEAD behind-remote check to app start
  • Update SKILL.md and all plugin docs to mention Next.js, document new commands, add Read permission for docs

Test plan

  • major org list --json returns valid JSON with org IDs and isSelected
  • major org select --id <id> sets org without TUI
  • major resource list returns JSON with isAttached markers
  • major resource add --id <id> / major resource remove --id <id> work
  • major resource env-list --json returns environments
  • major resource env --id <id> sets environment without TUI
  • major app deploy --message "test" --slug "test" --no-wait returns without crash
  • major app start warns when behind origin
  • major app info shows URL and deploy status
  • major app info --json returns valid JSON
  • Skill docs readable without permission prompts

Depends on major-technology/mono-builder#953 for the app info endpoint.

🤖 Generated with Claude Code

- Add --no-wait flag and non-TTY fallback to deploy command
- Add --id flag to org select and resource env for non-interactive use
- Add --json flag to org list and new resource env-list command
- Add resource list, add, and remove commands for programmatic management
- Enhance app info to show name, deploy status, and URL
- Add origin/HEAD behind check to app start
- Update SKILL.md and docs to mention Next.js, document new commands
- Add Read permission for skill docs in allowed-tools

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@josegironn josegironn requested a review from jasonzbao as a code owner April 3, 2026 01:23
josegironn and others added 3 commits April 2, 2026 18:53
- Add `major app deploy-status --version-id <id>` returning JSON
  with status, appUrl, and deploymentError
- Update --no-wait output to show the version ID and suggest
  deploy-status command
- Update SKILL.md and docs with deploy-status workflow

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
AddResourcesToProject diffs the passed list against resources.json.
Passing only the new resource caused it to treat all existing
resources as removals. Now passes existing + new.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Use ReadLocalResources (resources.json) as source of truth instead
  of GetApplicationResources (which returns all org resources)
- Extract ResolveResourceItems helper, reuse in manage/add/remove
- Remove now uses AddResourcesToProject for consistent client cleanup
- Bump plugin version to 1.0.4

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant